﻿<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="Delete picture.aspx.vb" Inherits="_Default" title="MoBiLe-Delete Picture" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">


        .style1
        {
            font-size: large;
            color: #0066FF;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" Runat="Server">
    <center>
    <p>
        <span class="style1">
        <asp:Label ID="Label1" runat="server" Text="Welcome "></asp:Label>
        <asp:Label ID="Label2" runat="server" Text="Username"></asp:Label>
        &nbsp;</span></p>
        <p>
            <span class="style1">
            Delete Picture :</span></p>
                    <p>
        <span class="style1">
        <asp:Label ID="Label3" runat="server" Text="User ID :"></asp:Label>
        &nbsp;<asp:DropDownList ID="DropDownList1" runat="server" Height="20px" 
                Width="93px" DataSourceID="SqlDataSource1" DataTextField="username" 
                            DataValueField="username" TabIndex="1">
            </asp:DropDownList>
&nbsp;<asp:Button ID="Button1" runat="server" Text="Go" Width="85px" TabIndex="2" />
            <asp:Button ID="Button2" runat="server" Text="View All" Width="85px" TabIndex="3" />
           
           
           
            <asp:GridView ID="GridView1" runat="server" AllowPaging="True" CellPadding="4" 
                ForeColor="#333333" GridLines="None" AutoGenerateColumns="False" 
                EmptyDataText="Sorry No Data Available" PageSize="5">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                <asp:BoundField DataField="imageid" HeaderText="Id" />
                               <asp:ImageField HeaderText="Image" DataImageUrlField="imageurl" ControlStyle-Height=150 ControlStyle-Width=150>
                               <ControlStyle Height="150px" Width="150px"></ControlStyle>
                               </asp:ImageField>
                <asp:BoundField DataField="title" HeaderText="Image Title" />
                <asp:BoundField DataField="uploadby" HeaderText="Upload By" />
                
                
                        <asp:ButtonField ButtonType="Image" ImageUrl="~/images/deleteicon.gif" 
                            Text="Button"  CommandName="select"  />
                            
                </Columns>
                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                <EditRowStyle BackColor="#999999" />
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
            </asp:GridView>
        
        
                        <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                            ConnectionString="<%$ ConnectionStrings:ConnectionString %>" 
                            SelectCommand="SELECT username FROM users"></asp:SqlDataSource>
            </span></p>
        <p>
           
           
           
            &nbsp;</p>
        <p>
            &nbsp;</p>
        <p>
            &nbsp;</p>
    </center>
    
         
        
        
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
</asp:Content>

